package org.uam.common;

import java.text.SimpleDateFormat;

public class ResourceCommon
{
    /** ********** 数据库操作标识 *********** */
    public static final String POSTFIX_INSERT = ".insert";

    public static final String POSTFIX_UPDATE = ".update";

    public static final String POSTFIX_DELETE = ".delete";

    public static final String POSTFIX_DELETE_IDS = ".deleteByIds";

    public static final String POSTFIX_DELETE_PRIAMARYKEY = ".deleteByPrimaryKey";

    public static final String POSTFIX_SELECT = ".select";

    public static final String POSTFIX_GETALL = ".getAll";

    public static final String POSTFIX_SELECTMAP = ".selectByMap";

    public static final String POSTFIX_SELECTSQL = ".selectBySql";

    public static final String POSTFIX_COUNT = ".count";

    public static final String POSTFIX_QUERY = ".query";

    public static final String POSTFIX_EXPORT = ".export";

    public static final String POSTFIX_PROCEDURE = ".procedure";

    /** ********** 数据库操作标识 *********** */

    public static final String POSTFIX_USER_SELECTBYLOGIN = ".selectUserByLogin";

    public static final String POSTFIX_LOGIN = ".selectByUserid";

    public static final String POSTFIX_MEMBER_AUTOMEMBERNAME = ".autoZoneName";

    public static final String POSTFIX_USERECORD_DODELFORUPDATE = ".doDelForUpdate";// 删除时删除关联表信息

    public static final String POSTFIX_PRIVILEGE_AUTOPRIVILEGENAME = ".autoPrivilegeName";

    public static final String POSTFIX_PRIVILEGE_AUTOPRIVILEGEGROUP = ".autoPrivilegeGroup";

    // adds
    // 11-12-20
    // useunit整合

    public static final String POSTFIX_USERGROUP_AUTOMEMBERNAME = ".autoGroupName";

    public static final String POSTFIX_PRIVILEGE_PRIVGROUP = ".privilegegroup";

    public static final String POSTFIX_PRIVILEGE_SELECTBYPRIVGROUP = ".selectByPrivGroup";

    public static final String POSTFIX_PRIVILEGE_SELECTBYUSERGROUP = ".selectByUserGroup";

    public static final String POSTFIX_MENU_SELECTBYMENUPID = ".selectMenuByPid";

    public static final String POSTFIX_MENU_MAXMENUID = ".maxMenuId";

    public static final String POSTFIX_PRIVUSERGROUP_INSERTPRIVGROUP = ".insertprivgroup";

    public static final String POSTFIX_PRIVUSERGROUP_INSERTROLEUSER = ".insertRoleuser";

    public static final String POSTFIX_PRIVUSERGROUP_INSERTUSERGROUP = ".insertUsergroup";

    public static final String POSTFIX_PRIVUSERGROUP_DELETEUSERGROUP = ".deleteUsergroup";

    public static final String POSTFIX_ROLEUSER_DELETEROLEUSER = ".deleteRoleuser";

    public static final String POSTFIX_PRIVUSERGROUP_DELETEPRIVGROUP = ".deleteUserGroupPriv";

    public static final String POSTFIX_ROLEUSER_SELECTROLEUSER = ".selectRoleuserUnit";

    public static final String POSTFIX_ROLEUSER_SELECTBYROLETYPEFORNEW = ".selectRoleuserByRoletypeForNew";

    public static final String POSTFIX_ROLEUSER_SELECTBYROLETYPEFLAG = ".selectRoleuserByRoletypeFlag";

    public static final String POSTFIX_ROLEUSER_SELECTBYROLETYPE = ".selectRoleuserByRoletype";

    public static final String POSTFIX_USERGROUP_SELECTUSERGROUP = ".selectBindUsergroup";

    public static final String POSTFIX_USER_SELECTUSERLOGINNAME = ".autoUserLoginName";

    /** ********** 用户登录后标识 *********** */
    public static final String LOGIN_USER = "LOGIN_USER";

    public static final String LOGIN_USER_MENU = "LOGIN_USER_MENU";

    public static final String LOGIN_USER_PRIVILEGE = "LOGIN_USER_PRIVILEGE";

    public static final String LOGIN_USER_ROLE_UNITIDS = "LOGIN_USER_ROLE_UNITIDS";

    public static final String LOGIN_USER_DEPART = "LOGIN_USER_DEPART";

    /** ********** 用户登录后标识 *********** */

    /** ********** 用户操作日志标识 ********* */
    public static final String OPERATION_NAME = "OPERATION_NAME";

    public static final String OPERATION_RESULT_CODE = "OPERATION_RESULT_CODE";

    public static final String RULE_MENU = "000-000";

    public static final SimpleDateFormat SIMPLE_FORMAT = new SimpleDateFormat(
            "yyyy-MM-dd");

    public static final String DEFAULT_MM = "123456";

}
